﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Breed.Domain.Migrations
{
    public partial class create1 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "MaternalMating",
                columns: table => new
                {
                    BreedId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    EITag = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    FirstMatingRam = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    BreedingMethod = table.Column<int>(type: "int", nullable: true),
                    EstrusTypeId = table.Column<int>(type: "int", nullable: true),
                    FirstRating = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    TurnOutBuild = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    TurnOutHuts = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    TransferBuilding = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    TransferField = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    BreedingDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    DoecorRoom = table.Column<DateTime>(type: "datetime2", nullable: true),
                    SeedVariety = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    BreedingRam = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsOk = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    DocumentNumber = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    SerialNumber = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    Notes = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    UserId = table.Column<int>(type: "int", nullable: false),
                    ReproductiveState = table.Column<int>(type: "int", nullable: false),
                    Weight = table.Column<decimal>(type: "decimal(18,2)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MaternalMating", x => x.BreedId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "MaternalMating");
        }
    }
}
